package com.j4.cms.obj;

import com.j4.common.obj.BaseEntity;

import javax.persistence.Table;

@Table(name = "`column`")
public class Column extends BaseEntity<Column> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private Integer modelId;// 模型id
    @javax.persistence.Column(name = "`name`")
	private String name;// 名称
	private String type;// 类型
	private Integer seq;// 序号
	private String remark;// 备注
	private Integer width = 100;// 列表显示时宽带
	private String allowBlank;// 允许为空
	private String listShow;// 列表显示
    @javax.persistence.Column(name = "`sql`")
	private String sql;// 下拉对应sql
    @javax.persistence.Column(name = "`status`")
	private Integer status;// 状态
	private String mappingData;// 映射字段

	public Integer getModelId() {
		return modelId;
	}

	public void setModelId(Integer modelId) {
		this.modelId = modelId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Integer getSeq() {
		return seq;
	}

	public void setSeq(Integer seq) {
		this.seq = seq;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Integer getWidth() {
		return width;
	}

	public void setWidth(Integer width) {
		this.width = width;
	}

	public String getAllowBlank() {
		return allowBlank;
	}

	public void setAllowBlank(String allowBlank) {
		this.allowBlank = allowBlank;
	}

	public String getListShow() {
		return listShow;
	}

	public void setListShow(String listShow) {
		this.listShow = listShow;
	}

	public String getSql() {
		return sql;
	}

	public void setSql(String sql) {
		this.sql = sql;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getMappingData() {
		return mappingData;
	}

	public void setMappingData(String mappingData) {
		this.mappingData = mappingData;
	}
}
